package com.controller.Hua;

import com.pojo.Hua.HuaBeginOrder;
import com.pojo.Hua.HuaMaterialOutWarehouse;
import com.pojo.Hua.HuaMaterialWarehouse;
import com.service.Hua.IMaterialWarehouseOutService;
import com.service.Hua.IMaterialWarehouseService;
import com.util.Res;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Objects;

@RestController
@RequestMapping("huaWarehouse/")
public class MaterialWarehouseController {
    @Autowired
    IMaterialWarehouseService iMaterialWarehouseService;
    //获取库存
    @GetMapping("getMaterialWarehouse")
    public List<HuaMaterialWarehouse> getMaterialWarehouse() {
        List<HuaMaterialWarehouse> materialWarehouse = iMaterialWarehouseService.getMaterialWarehouse();
        return materialWarehouse;
    }

    
}
